package com.wang.exam.service;

import com.wang.exam.mapper.AdminMapper;
import com.wang.exam.mapper.StudentMapper;
import com.wang.exam.mapper.TeacherMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@Service
public class updatePasswordService {
    @Autowired
    AdminMapper adminMapper;
    @Autowired
    TeacherMapper teacherMapper;
    @Autowired
    StudentMapper studentMapper;


    public int updateAdminPassword(String admin_password, String admin_name){
        int result = adminMapper.updateAdminPassword(admin_password,admin_name);
        return result;
    }
    public int upTeacherPassWord(Map<String,Object> map){
        int result = teacherMapper.upTeacherPassWord(map);
        return result;
    }
    public int upStudentPassWord(Map<String,Object> map){
        int result = studentMapper.upStudentPassWord(map);
        return result;
    }
}
